﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace BU
{
    [DataContract(Namespace = "bmg"), Serializable]
    public class Customer
    {
        [DataMember]
        public int ID { get; set; }

        [DataMember]
        public String Name { get; set; }

        [DataMember]
        public String Firstname { get; set; }

        [DataMember]
        public string Mail { get; set; }

        [DataMember]
        public DateTime Dob { get; set; }

        [DataMember]
        public List<Order> Orders { get; set; }

        [DataMember]
        public List<Address> Address { get; set; }

        public override string ToString()
        {
            return this.Name + " " + this.Firstname;
        }
    }
}
